package billrestauration.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.context.annotation.Lazy;

import billrestauration.extra.Config;

@Entity
@Lazy(value=false)
@Table
public class Adresse implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = Config.versionUID;
	@Column
	@Id
	@GeneratedValue
private long id;
	@Column
private String pays;
	@Column
private String ville;
	@Column
private int  codepostale;
	@Column
private String voie;
	@Column
private String telephone;
	@Column
private String portable;
	public Adresse() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Adresse(int id, String pays, String ville, int codepostale,
			String voie, String telephone, String portable) {
		super();
		this.id = id;
		this.pays = pays;
		this.ville = ville;
		this.codepostale = codepostale;
		this.voie = voie;
		this.telephone = telephone;
		this.portable = portable;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getPays() {
		return pays;
	}
	public void setPays(String pays) {
		this.pays = pays;
	}
	public String getVille() {
		return ville;
	}
	public void setVille(String ville) {
		this.ville = ville;
	}
	public int getCodepostale() {
		return codepostale;
	}
	public void setCodepostale(int codepostale) {
		this.codepostale = codepostale;
	}
	public String getVoie() {
		return voie;
	}
	public void setVoie(String voie) {
		this.voie = voie;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	public String getPortable() {
		return portable;
	}
	public void setPortable(String portable) {
		this.portable = portable;
	}
	@Override
	public String toString() {
		return "Adresse [id=" + id + ", pays=" + pays + ", ville=" + ville
				+ ", codepostale=" + codepostale + ", voie=" + voie
				+ ", telephone=" + telephone + ", portable=" + portable + "]";
	}

}
